package com.eedi.framework.sms.controller.sys.vo;

import com.eedi.framework.common.enums.CommonStatusEnum;
import com.eedi.framework.common.validation.AddGroup;
import com.eedi.framework.common.validation.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@Schema(description = "系统界面 - 短信新增/修改 Request VO")
@Data
public class SysSmsSaveReq {

    @Schema(description = "短信消息ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21594")
    @NotEmpty(message = "短信消息ID不能为空", groups = UpdateGroup.class)
    private String sysSmsId;

    @Schema(description = "短信消息模板ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13366")
    @NotEmpty(message = "短信消息模板ID不能为空", groups = AddGroup.class)
    private String sysSmsTemplateId;

    @Schema(description = "短信启用状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "短信启用状态不能为空",groups = {AddGroup.class, UpdateGroup.class})
    private CommonStatusEnum sysSmsStatus;

}
































